package com.jinly.ryder.database.service.model;

import com.jinly.ryder.flow.service.model.ApplyStatus;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SqlTask {

    private Long id;


    /**
     * 申请Id
     */
    private Long applyId;


    /**
     * 申请状态
     */
    private ApplyStatus applyStatus;

    /**
     * 任务状态
     */
    private SqlTaskState state;

    /**
     * 数据库Id
     */
    private Integer databaseId;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 数据库名称
     */
    private String databaseName;

    /**
     * 申请人
     */
    private Long applyUserId;

    /**
     * 申请备注
     */
    private String remark;

    private String sqlScript;

    private LocalDateTime created;

    private LocalDateTime updated;

    private List<SqlTaskItem> itemList;
}
